$OpenBSD: patch-makefile,v 1.3 2016/11/03 15:20:14 naddy Exp $
--- makefile.orig	Tue May 10 11:51:35 2016
+++ makefile	Thu Nov  3 12:59:14 2016
@@ -5,10 +5,11 @@
 CXX=c++
 CXXFLAGS=-O2
 LIBFLAGS=-fPIC
-DEFINES=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP
+DEFINES=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DOPENSSL_AES
 STRIP=strip
 LDFLAGS=-pthread
 DESTDIR=/usr
+LIBS=-lcrypto
 
 # Linux using LCC
 #CXX=lcc
@@ -105,6 +106,8 @@ OBJECTS=rar.o strlist.o strfn.o pathfn.o smallfn.o glo
 	resource.o match.o timefn.o rdwrfn.o consio.o options.o errhnd.o rarvm.o secpassword.o \
 	rijndael.o getbits.o sha1.o sha256.o blake2s.o hash.o extinfo.o extract.o volume.o \
   list.o find.o unpack.o headers.o threadpool.o rs16.o cmddata.o ui.o
+
+.SUFFIXES: .cpp
 
 .cpp.o:
 	$(COMPILE) -D$(WHAT) -c $<
